package com.cosmoplat.xikai.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cosmoplat.xikai.business.domain.BaseWorkOrder;
import com.cosmoplat.xikai.business.service.BaseWorkOrderService;
import com.cosmoplat.xikai.business.mapper.BaseWorkOrderMapper;
import com.cosmoplat.xikai.common.enums.DelFlagEnum;
import org.springframework.stereotype.Service;

/**
* @author 22047582
* @description 针对表【base_work_order】的数据库操作Service实现
* @createDate 2025-01-07 13:51:30
*/
@Service
public class BaseWorkOrderServiceImpl extends ServiceImpl<BaseWorkOrderMapper, BaseWorkOrder>
    implements BaseWorkOrderService{

    @Override
    public BaseWorkOrder getByMesOrderId(String orderId) {
        QueryWrapper<BaseWorkOrder> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(BaseWorkOrder::getOrderId, orderId)
                .eq(BaseWorkOrder::getIsDelete, DelFlagEnum.NORMAL.getCode());
        return getOne(queryWrapper);
    }
}




